/*
 * @Date         : 2022-06-07 18:49:12
 * @LastEditors  : zu1662
 * @LastEditTime : 2022-06-09 22:56:20
 * @Description  : 文件上传配置项
 * 
 * Copyright © 2022 by zu1662, All Rights Reserved. 
 */
import { registerAs } from "@nestjs/config";

export default registerAs(
  "file",
  (): Record<string, any> => ({
    fieldNameSize: 100, // in bytes
    fieldSize: 524288, // 500 KB
    maxFileSize: 5242880, // 5M
    maxFiles: 5, // 2 files
  })
);
